package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.InvContractDetailBean;
import com.esun.payment_api.domain.InvFormContract;
import com.esun.payment_api.domain.InvFormContractExample;
import java.util.List;

import com.esun.payment_api.dto.PInvInsParam;
import org.apache.ibatis.annotations.Param;

public interface InvFormContractMapper {
    long countByExample(InvFormContractExample example);

    int deleteByExample(InvFormContractExample example);

    int insert(InvFormContract record);

    int insertSelective(InvFormContract record);

    List<InvFormContract> selectByExample(InvFormContractExample example);

    int updateByExampleSelective(@Param("record") InvFormContract record, @Param("example") InvFormContractExample example);

    int updateByExample(@Param("record") InvFormContract record, @Param("example") InvFormContractExample example);

    //存储过程
    void pInvInsContract(@Param("param") PInvInsParam param);

    //删除，调用存储过程
    void pInvDelContract(@Param("param") PInvInsParam param);

    int deleteById(Integer invId, Integer id);

    List<InvContractDetailBean> getDetailByInvId(Short coId, Integer invId);
}